package com.zxl.designpattern.creator.factory.methodpattern;

import com.zxl.designpattern.creator.factory.pojo.Phone;
import com.zxl.designpattern.creator.factory.pojo.XiaomiPhone;

/**
 * @author zxl
 * @version 1.0
 * @description 设计模式-创建型模式-工厂方法模式-工厂实现
 * @date 2025/5/31 19:24
 */
public class XiaoMiPhoneFactory implements IPhoneFactory {
    @Override
    public Phone createPhone() {
        return new XiaomiPhone();
    }
}
